import request from '@/utils/request';

// 数据库分组列表查询
export async function queryDbGroupList(params) {
  return request('/b/dbgroup/queryDbGroupList', {
    method: 'POST',
    data: params,
  });
}

//数据库分组新增
export async function addDbGroup(params) {
  return request('/b/dbgroup/addDbGroup', {
    method: 'POST',
    data: params,
  });
}

export async function queryList(params) {
  return request('/s/user/queryList', {
    method: 'POST',
    data: params,
  });
}

//选择绑定数据库的接口
export async function queryDbNameList(params) {
  return request('/b/dbinfo/queryDbNameList', {
    method: 'POST',
    data: params,
  });
}

//数据库分组删除
export async function dbgroupdelete(params) {
  return request('/b/dbgroup/delete', {
    method: 'POST',
    data: params,
  });
}

export async function queryRelDbList(params) {
  return request('/b/dbgrouprel/queryRelDbList', {
    method: 'POST',
    data: params,
  });
}

export async function updateDbGroup(params) {
  return request('/b/dbgroup/updateDbGroup', {
    method: 'POST',
    data: params,
  });
}
